package dshop.model;

import java.util.Date;

import appbase.jfinal.ext.BaseModel;

public class Product extends BaseModel<Product>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8015245793628418243L;

	public static final Product dao = new Product();
	
	public static void setCheckStatus(int productId, int checkStatus, String checkStatusExplain) 
	{
		new Product().set("audit_status", checkStatus)
		 		 	 .set("audit_status_explain", checkStatusExplain)
		 		 	 .set("audit_date_time", new Date())
		 		 	 .set("product_id", productId)
		 		 	 .update();            
	}
}
